I believe you could do it like this : var fd = new FormData(); fd.append( 'file', input.files[0] ); $.ajax({ url: 'http://example.com/script.php', data: fd, ... ... <看更多>
Search
Search
I believe you could do it like this : var fd = new FormData(); fd.append( 'file', input.files[0] ); $.ajax({ url: 'http://example.com/script.php', data: fd, ... ... <看更多>
How to send a file or formdata with jQuery is brought up a lot at StackOverflow I think you should do things better by trying to understand ... ... <看更多>
I have it working now using this: $('#Form').submit(function(ev) { // Prevent the form from actually submitting ev.preventDefault(); var formData = new ... ... <看更多>
Uploading Audio Files Using FormData & Ajax. This is the first in a series of posts about Feedback, a collaborative audio recording app that ... ... <看更多>